package com.baizhi.obj1;

/**
 * JavaBean遵循以下是标砖
 *  1. 类是公共的
 *  2. 有一个公共的无参构造
 *  3. 有属性，私有的，   提供对应的get,set方法，公共的
 */
public class Teacher {

    //私有的属性
    private String name;
    private char gender;
    private double salary;
    private String address;
    private String rank;

    //无参构造
    public Teacher() {
    }


    //Alt+insert

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRank() {
        return rank;
    }

    public void setRank(String rank) {
        this.rank = rank;
    }
}
